using UnityEngine;
using QFramework;

namespace Projectsurviva
{
	public partial class bloodvial : ViewController
	{
        private void OnTriggerEnter2D(Collider2D collision)
        {
            if (collision.gameObject.GetComponent<Collectcircle>())
            {
                if(Global.Hp.Value==Global.maxHp.Value)
                {

                }
                else
                {

                this.DestroyGameObjGracefully();
                Global.Hp.Value++;
                AudioKit.PlaySound("hp");
                }

            }
        }
    }
}
